<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>内联处理器访问原生dom事件</title>
		<script src="https://cdn.jsdelivr.net/npm/vue"></script>
	</head>
	<body>
		<div id="app">
			<button @click="show('Welcome to China!',$event)">111</button>
		</div>
		<script>
			var vm = new Vue({
				el:'#app',
				methods:{
					show:function(msg,event){
						if(event){
							event.preventDefault();							
					}
						alert(msg);
				}
			  }
			})
		</script>
	</body>
</html>
